From 8382e15e92e4e8e41a9d6926f9dd41e5e2b8a5aa Mon Sep 17 00:00:00 2001 From: robertl Date: Mon, 24 Oct 2005 16:51:50 +0000 Subject: [PATCH] Allow override of creator name. --- gpsbabel/gpx.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/gpsbabel/gpx.c b/gpsbabel/gpx.c index 4063e181f..d4485969a 100644 --- a/gpsbabel/gpx.c +++ b/gpsbabel/gpx.c @@ -64,6 +64,10 @@ static route_head *rte_head; #define MY_CBUF_SZ 4096 #define DEFAULT_XSI_SCHEMA_LOC "http://www.topografix.com/GPX/1/0 http://www.topografix.com/GPX/1/0/gpx.xsd" #define DEFAULT_XSI_SCHEMA_LOC_FMT "\"http://www.topografix.com/GPX/%c/%c http://www.topografix.com/GPX/%c/%c/gpx.xsd\"" +#ifndef CREATOR_NAME_URL +# define CREATOR_NAME_URL "GPSBabel - http://www.gpsbabel.org" +#endif + /* * Format used for floating point formats. Put in one place to make it @@ -992,6 +996,8 @@ gpx_rd_deinit(void) } XML_ParserFree(psr); psr = NULL; + wpt_tmp = NULL; + cur_tag = NULL; } static void @@ -1442,7 +1448,7 @@ gpx_write(void) fprintf(ofd, "\n", global_opts.charset_name); fprintf(ofd, "